﻿using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Cms.Tests.Unit.Utilities
{

    [TestClass]
    public class UpdaterTests
    {

        public UpdaterTests()
        {
        }


        [TestMethod]
        public void TestVersionComparisons()
        {
            Cms.Utilities.Version currentVersion = new Cms.Utilities.Version("0.7.10169.75");
            Assert.IsFalse(currentVersion.IsLessThanOrEqualTo("0.7.10169.73"));
            Assert.IsFalse(currentVersion.IsLessThanOrEqualTo("0.7.10169.74"));
            Assert.IsTrue(currentVersion.IsLessThanOrEqualTo("0.7.10169.75"));
        }


        [TestMethod]
        public void TestApplyPatches()
        {
            //Updater.ApplyPatches();
        }

    }

}
